/*
 * @Author: your name
 * @Date: 2021-04-24 15:07:59
 * @LastEditTime: 2021-05-30 17:35:58
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /admin/src/components/form/interface.ts
 */
import { Rule } from 'antd/lib/form';

interface IFieldName {
  value: string;
  label: string;
  children?: string;
}

export interface IForm {
  key?: string;
  label?: string | React.ReactElement;
  type?: string;
  placeholder?: string;
  data?: { list: any[]; fieldNames?: IFieldName };
  meta?: {
    buttonStyle?: 'solid' | 'outline';
    optionType?: 'button' | 'default';
  };
  rules?: Rule[] | undefined;
  col?: number;
  arrFormItem?: Array<IForm>;
  width?: number;
  disabled?: boolean;
  allowClear?: boolean;
  [x: string]: any;
}
